package com.mcxx.modules.base.service.write;

import com.mcxx.modules.base.dao.write.AreaGroupWriteDao;
import com.mcxx.modules.base.entity.AreaGroupEntity;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional
public class AreaGroupWriteService extends BaseService {
    @Autowired
    private AreaGroupWriteDao areaGroupWriteDao;

    public int deleteAreaGroupByTenantid(String tenantId){
        return areaGroupWriteDao.deleteAreaGroupByTenantid(tenantId);
    }


    public int insetAreaGroupList(List<AreaGroupEntity> allOrgAreaList){
        return areaGroupWriteDao.insetAreaGroupList(allOrgAreaList);
    }


    public int updateAreaGroup(AreaGroupEntity areaGroupEntity){
        return areaGroupWriteDao.updateAreaGroup(areaGroupEntity);
    }


    public int deleteAreaGroupById(String id){
        return areaGroupWriteDao.deleteAreaGroupById(id);
    }


    public int insetAreaGroup(AreaGroupEntity areaGroupEntity){
        return areaGroupWriteDao.insetAreaGroup(areaGroupEntity);
    }
}
